package lab02.test36;

public class PostGraduate extends Student {

    @Override
    public String avergage(double[] course) {
        for (int i = 0; i < 3; i++) {
            sum += course[i];
        }
        sum = sum/3;
        if (sum > 90) {
            grade_level = "优秀！";
        } else if (sum > 80) {
            grade_level = "良好！";
        } else if (sum > 70) {
            grade_level = "一般！";
        } else if (sum > 60) {
            grade_level = "及格！";
        } else {
            grade_level = "不及格！";
        }
        return grade_level;
    }
}

